/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-05-09
 * Time: 14:29
 */



class A {

    private int a = 10;
    public int aa = 100;

    void A() {

    }
}

class B extends A {
    public void f() {
        System.out.println(aa);

    }
}


public class Test {

    public static void main(String[] args) {
        int[] X = {10, 2, 15, 6, -11, 25, 16};
        int t1 = 0, t2 = 10;
        for (int i = 0; i < X.length; i++)
            t1 += X[i];
        System.out.println("t1=" + t1);
        t2 -= X[0] - X[1];
        System.out.println("t2=" + t2);
    }

    public static void main1(String[] args) {
        BinarySearchTree b = new BinarySearchTree();
        b.Insert(2);
        b.Insert(1);
        b.Insert(4);
        System.out.println("======");
        BinarySearchTree.TreeNode r = b.search(2);
        System.out.println(r.left.val);
    }
}
